package com.gupao.jly521;

/**
 * @author Jly
 * @date 2018/8/27  15:17
 */
public class GoToWorkTemplate {

    IGoToWorkWay goWay;

    private GoToWorkTemplate() {

    }

    public GoToWorkTemplate(IGoToWorkWay goWay) {
        this.goWay = goWay;
    }

    public void gotoWork(){

        System.out.println("起床，洗漱！！！");

        System.out.println("吃早餐");

        goWay.gotoWorkByDifferentWay();

        System.out.println("准时到公司！！！");

    }

}
